<template>
  <div class="index">
    <nav>
      <router-link v-for="(v,i) in arr" :key="i" :to="v.to">{{v.text}}</router-link>
    </nav>
  </div>
</template>

<script>
export default {
data(){
  return {
    currentIndex:0,
    arr:[
      {text:"职位",to:"/baiyanjie"},
      {text:"有了",to:"/caixia"},
      {text:"消息",to:"/xingyu"},
      {text:"我的",to:"/inedxvews"}
    ]
  }
},
methods:{
  fun(index){
    console.log(index);
  }
}

}
</script>

<style lang="scss" >
    *{
        margin: 0px;
        padding: 0px;
    }
.index{
    nav{
        width: 100%;
        height: 3.125rem;
        border-top: 1px solid gray;
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0rem;
        line-height: 3.125rem;
        font-size: .75rem;
        background-color: rgba(64, 63, 63, 0.062);
    }
    a{
      color: rgb(167, 155, 155);
    }
}

</style>